console.log("1");
setTimeout(() => {
    console.log("2")
    Promise.resolve().then(() =>{
        console.log("3")
    })
}, 0)

new Promise(function(resolve, reject){
    console.log("4")
    setTimeout(function(){
        console.log("5")
        resolve("6")
    }, 0)
}).then(res =>{        
    console.log("7")
    setTimeout(() =>{
        console.log(res)
    }, 0)
})